# FindSIMDIS_SDK.cmake
#
# Creates targets for the SIMDIS SDK package and all of its dependencies.
# Depending on 3rd party libraries, SDK target names will include:
#
#  - simNotify
#  - simCore
#  - simData
#  - simVis
#  - simUtil
#  - simQt
#

set(OLD_CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH})
list(APPEND CMAKE_PREFIX_PATH "@SDK_LIB_CMAKE_FULLPATH@")

# Configured list of all 3rd party library dependencies at SDK configure time
set(_SDK_LIBS @VALID_IMPLIBS@)
# Import each dependency as a target
foreach(_LIB ${_SDK_LIBS})
    include(${CMAKE_CURRENT_LIST_DIR}/Import${_LIB}.cmake)
endforeach()

# Include the configuration for SIMDIS SDK generated by CMake export functionality
include(CMakeFindDependencyMacro)
set(_SDK_LIBS @VALID_SDK_LIBS@)
foreach(_LIB ${_SDK_LIBS})
    find_dependency(${_LIB})
endforeach()

set(CMAKE_PREFIX_PATH ${OLD_CMAKE_PREFIX_PATH})
